﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace NBFWcfService
{
    // 注意: 如果更改此处的接口名称 "IFundYield"，也必须更新 Web.config 中对 "IFundYield" 的引用。
    [ServiceContract]
    public interface IFundYield
    {
        /// <summary>
        /// 深圳中行现有基金列表
        /// </summary>
        /// <param name="zdid">诊断ID</param>
        /// <returns></returns>
        [OperationContract]
        DataSet GetNowFundList(string zdid);

        /// <summary>
        /// 深圳中行历史基金列表
        /// </summary>
        /// <param name="zdid">zdid</param>
        /// <param name="startDay">起始日期</param>
        /// <param name="endDay">结束日期</param>
        /// <returns></returns>
        [OperationContract]
        DataSet GetHistoryFundList(string zdid, DateTime startDay, DateTime endDay);

        /// <summary>
        /// 深圳中行基金收益率计算
        /// </summary>
        /// <param name="openid">openid</param>
        /// <returns></returns>
        [OperationContract]
        int jisuanOnejjForShenzhen(string openid);

        /// <summary>
        /// 深圳中行获取真实客户组合收益情况
        /// </summary>
        /// <param name="zdid">zdid</param>
        /// <returns></returns>
        [OperationContract]
        DataSet getRealShouyilv(string zdid);
        
        /// <summary>
        /// 深圳中行组合基金收益率计算
        /// </summary>
        /// <param name="zdid">zdid</param>
        /// <returns></returns>
        [OperationContract]
        double jisuanZhuHeForShenzhen(string zdid);

        /// <summary>
        /// 获取组合收益率
        /// </summary>
        /// <param name="zdid">zdid</param>
        /// <returns></returns>
        [OperationContract]
        double GetZhuHeSYL(string zdid);
    }
}
